package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_listEntity_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_listEntity_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_24 = new TagInfo("c:get", //$NON-NLS-1$
            3, 24,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_26 = new TagInfo("c:get", //$NON-NLS-1$
            4, 26,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_30 = new TagInfo("c:get", //$NON-NLS-1$
            9, 30,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_93 = new TagInfo("c:get", //$NON-NLS-1$
            9, 93,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_33 = new TagInfo("c:get", //$NON-NLS-1$
            12, 33,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_104 = new TagInfo("c:get", //$NON-NLS-1$
            12, 104,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_7 = new TagInfo("c:get", //$NON-NLS-1$
            13, 7,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_59 = new TagInfo("c:get", //$NON-NLS-1$
            13, 59,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_114 = new TagInfo("c:get", //$NON-NLS-1$
            13, 114,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_185 = new TagInfo("c:get", //$NON-NLS-1$
            13, 185,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_19_18 = new TagInfo("c:get", //$NON-NLS-1$
            19, 18,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lower-case($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_19_67 = new TagInfo("c:get", //$NON-NLS-1$
            19, 67,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_23_31 = new TagInfo("c:get", //$NON-NLS-1$
            23, 31,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_25_20 = new TagInfo("c:get", //$NON-NLS-1$
            25, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lower-case($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_25_71 = new TagInfo("c:get", //$NON-NLS-1$
            25, 71,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            // 针对自身表
            out.write("\t@RequestMapping(\"/list");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_24 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_24); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_24.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_24.setTagInfo(_td_c_get_3_24);
            _jettag_c_get_3_24.doStart(context, out);
            _jettag_c_get_3_24.doEnd();
            out.write("s\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ModelAndView list");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_26 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_26); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_26.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_26.setTagInfo(_td_c_get_4_26);
            _jettag_c_get_4_26.doStart(context, out);
            _jettag_c_get_4_26.doEnd();
            out.write("s(@ModelAttribute CmiPagination page) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tModelAndView mav = new ModelAndView();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tif(page.getCurrentPagination() == 0) {               ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tpage =  new CmiPagination(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_9_30 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_30); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_9_30.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_9_30.setTagInfo(_td_c_get_9_30);
            _jettag_c_get_9_30.doStart(context, out);
            _jettag_c_get_9_30.doEnd();
            out.write("Service.count");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_9_93 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_93); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_9_93.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_9_93.setTagInfo(_td_c_get_9_93);
            _jettag_c_get_9_93.doStart(context, out);
            _jettag_c_get_9_93.doEnd();
            out.write("s());  ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tSet<String> basicAttributes = ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_12_33 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_33); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_12_33.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_12_33.setTagInfo(_td_c_get_12_33);
            _jettag_c_get_12_33.doStart(context, out);
            _jettag_c_get_12_33.doEnd();
            out.write("PaginationService.get");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_12_104 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_104); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_12_104.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_12_104.setTagInfo(_td_c_get_12_104);
            _jettag_c_get_12_104.doStart(context, out);
            _jettag_c_get_12_104.doEnd();
            out.write("BasicAttributes();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tSet<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_7); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_7.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_7.setTagInfo(_td_c_get_13_7);
            _jettag_c_get_13_7.doStart(context, out);
            _jettag_c_get_13_7.doEnd();
            out.write("> ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_59 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_59); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_59.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_59.setTagInfo(_td_c_get_13_59);
            _jettag_c_get_13_59.doStart(context, out);
            _jettag_c_get_13_59.doEnd();
            out.write("s =  ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_114 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_114); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_114.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_114.setTagInfo(_td_c_get_13_114);
            _jettag_c_get_13_114.doStart(context, out);
            _jettag_c_get_13_114.doEnd();
            out.write("PaginationService.get");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_185 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_185); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_185.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_185.setTagInfo(_td_c_get_13_185);
            _jettag_c_get_13_185.doStart(context, out);
            _jettag_c_get_13_185.doEnd();
            out.write("Records(page);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"basicAttributes\",basicAttributes);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"basicAttributesSize\",basicAttributes.size());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_19_18 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_19_18); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_19_18.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_19_18.setTagInfo(_td_c_get_19_18);
            _jettag_c_get_19_18.doStart(context, out);
            _jettag_c_get_19_18.doEnd();
            out.write("s\",");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_19_67 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_19_67); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_19_67.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_19_67.setTagInfo(_td_c_get_19_67);
            _jettag_c_get_19_67.doStart(context, out);
            _jettag_c_get_19_67.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"page\",page);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"entityName\",\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_23_31 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_23_31); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_23_31.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_23_31.setTagInfo(_td_c_get_23_31);
            _jettag_c_get_23_31.doStart(context, out);
            _jettag_c_get_23_31.doEnd();
            out.write("\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.setViewName(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_25_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_25_20); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_25_20.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_25_20.setTagInfo(_td_c_get_25_20);
            _jettag_c_get_25_20.doStart(context, out);
            _jettag_c_get_25_20.doEnd();
            out.write("/list");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_25_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_25_71); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_25_71.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_25_71.setTagInfo(_td_c_get_25_71);
            _jettag_c_get_25_71.doStart(context, out);
            _jettag_c_get_25_71.doEnd();
            out.write("s.jsp\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\treturn mav;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}\t");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
    }
}
